﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/TemplateUser.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolderScript" runat="server">

    <script src="../../Scripts/jquery.validate.js" type="text/javascript"></script>

    <script src="../../Scripts/jquery-ui-1.8.2.custom.min.js" type="text/javascript"></script>

    <link href="../../Content/css/jquery-ui-1.8.2.custom.css" rel="stylesheet" type="text/css" />
	<script language="javascript" type="text/javascript">
	    $(document).ready(function() {

	        $('#f1').validate({
	            rules: {
	                idusername:{
	                    required: true,
	                    number: true
	                },
	                username: {
	                    required: true
	                },
	                name: {
	                    required: true
	                },
	                birth: {
	                    required: true
	                },
	                address: {
	                    required: true

	                },
	                PlaceBirth: {
	                    required: true
	                },
	                job: {
	                    required: true
	                }
	                



	            }, //ket thuc rules
	            messages: {
	                idusername: {
	                    required: "ID Username not null!!!",
	                    number: "ID Username must be number!!!"
	                },
	                username: {
	                    required: "Username not null!!!"
	                },
	                name: {
	                    required: "Name can not be null!!!!!!"
	                },
	                birth: {
	                    required: "Birth can not be null!!!!"
	                },
	                address: {
	                    required: "Address not null!!!!!"

	                },
	                PlaceBirth: {
	                    required: "Place Birth can not be null"
	                },
	                job: {
	                    required: "Job can not be null !!!!!"
	                }

	            }
	        });  // ket thuc validate

	        });
	        $(document).ready(function() {
	           
	            $('#birth').datepicker({
	                showButtonPanel: true,
	                changeMonth: true,
	                changeYear: true,
	                dateFormat: 'yy-mm-dd',
	                yearRange: '1960:2020'

	            });
	        });             // ket thuc ready
    </script>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <div class="center_block_top"><span>&nbsp;</span><h3>Registry</h3></div>
<div class="center_block_mau"><!--section-->
	<div id="intro">
<blockquote>
  <div class="redistry">
  		<%using (Html.BeginForm("ResolveUpdateUser", "UpdateUser", FormMethod.Post, new { @id = "f1" }))
      { %>
  		<ul>
  		    <li>
            	<span>ID Username:</span>
            	<div class="input_text"></div>
            	<div><input name="idusername" id="idusername" type="text" size="20" /></div>
            	<div></div></li>
        	<li>
            	<span>User Name:</span>
            	<div class="input_text"></div>
            	<div>
            	    <input name="username" id="username" type="text" size="20" />
            	    <label id="Label1" class="error" visible="true"><%=  Session["Result"]%></label>
                </div>
            	<div></div></li>
            <li>
            	<span>Name:</span>
            	<div class="input_text"></div>
            	<div><input name="name" type="text" size="20" id="name" /></div></li>
            <li>
            	<span>BirthDay:</span>
            	<div class="input_text"></div>
            	<div><input name="birth" id="birth" type="text" id="birth" size="20" /></div></li>
            <li>
            	<span>Address:</span>
            	<div class="input_text"></div>
            	<div><input name="address" id="address" type="text" size="20" /></div></li>
            <li>
            	<span>PlaceBirth:</span>
            	<div class="input_text"></div>
            	<div><input name="PlaceBirth" id="PlaceBirth" type="text" size="20" /></div></li>
            <li>
            	<span>Job:</span>
            	<div class="input_text"></div>
            	<div><input name="job" id="job" type="text" size="20" /></div></li>
            
            <li>
            <li>
            
            	<span>&nbsp;</span>
                <ul>
                	<li ><input type="submit" name="button" value="Update" class="ok"/></li>
                    <li id="cancel" ><input type="reset" name="button" value="Cancel" class="ok" /></li>
                </ul>
            </li>
        </ul>
        <%} %>
  </div>
</blockquote>
<div class="clearBoth"></div>
<blockquote>
 
</blockquote>
</div>
<!--//intro-->
</div>
<div class="center_block_bottom_mau"></div>

</asp:Content>


